/**
 * Created by jerry on 2017/11/13.
 * 用户相关api
 */
import * as API from './'

export default {
  // 查询获取列表(通过page分页)
  qryByPage: params => {
    return API.GET(`/${params.model}/qryByPage`, params)
  },
  // 添加
  doAddOrUpdate: params => {
    return API.POST(`/${params.model}/doAddOrUpdate`, params)
  },
  // 删除
  doDel: params => {
    return API.DELETE(`/${params.model}/doDel`, params)
  },
  // 获取
  getById: params => {
    return API.GET(`/${params.model}/getById`, params)
  },
  // 查询获取列表(远程搜索)
  qryBySelect: params => {
    return API.GET(`/${params.model}/qryBySelect`, params)
  }
}
